package cn.test.controller;

import cn.test.pojo.Type;
import cn.test.service.ActivityService;
import cn.test.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author:ggj
 * @Date:2020/04/08/0:49
 * @Description:
 */
@RestController
public class TypeController {

    @Autowired
    TypeService typeService;


    //查询所有的活动
    @GetMapping("/type")
    public List<Type> queryType(){
        return typeService.queryType();

    }
}
